<?php
class ErrorController extends App_Zend_Controller_Action_Admin
{
    public function indexAction()
    {
        $this->_helper->layout->disableLayout();
        echo 'error';
    }
    
    public function deniedAction()
    {
        $this->_helper->layout->disableLayout();
        if (!App_User::getCurrentUser()) {
        	$this->_redirect('/user/login');
        } else {
        	echo 'Sorry, Access Denied';
        }
    }
}